var sMemberType=(sPN==null)?"property":"attribute";
sMemberName=(sPN==null)?sMemberName:sPN;
var sProj=_topicdata.getAttribute("proj");
var sAddHelpString="";
// Add project specific help messages here.
if(sProj){
switch(sProj){
case "pchealth":
break;
case "workshop":
sAddHelpString=" Internet Explorer does not expose this member on platforms that are not listed.";
break;
}
}
sHelpText+=sAddHelpString;
// Check _topicdata to determine if the reference is a style and/or currentstyle member
var bIsCurrentStyleProp=(_topicdata.getAttribute("is_currentstyle_prop"))?true:false;
var bIsStyleProp=(_topicdata.getAttribute("is_style_prop"))?true:false;
// If the member name or persistent name exists on _topicdata, and the document is a style or current style property, then formulate the dynamic sentence.
var vStyleLink='<A STYLE="color: #2277FF;" HREF="/workshop/author/dhtml/reference/objects/obj_style.asp">style</A>';
var vCurrentStyleLink='<A STYLE="color: #2277FF;" HREF="/workshop/author/dhtml/reference/objects/currentStyle.asp">currentStyle</A>';
var vRuntimeStyleLink='<A STYLE="color: #2277FF;" HREF="/workshop/author/dhtml/reference/objects/runtimeStyle.asp">runtimeStyle</A>';
// The style property was first available in IE 4. This condition is present for error-checking.
if(iMinStyleVer<4 && iMinStyleVer>0){
vUseVer="4.0";
}
// Use iMark to determine the grammar of the prepositional phrase (object., or object, object, object, or object).
var iMark=0;
// If the member is a style property, the style property is greater than 0 (default), and the style property version is equal to the minimum *style version, then add the link and increment iMark.
sStyleComments="Objects that expose the <B>" + sMemberName + "</B> " + sMemberType + " as of Internet Explorer " + vUseVer + " or later are accessible through script using the ";
switch(aStyleObjList.length)
{
case 1:
sStyleComments += aStyleObjList[0];
break;
case 2:
sStyleComments += aStyleObjList[0] + " or " + aStyleObjList[1];
var iNextMin=(iRuntimeStyleVer>iMinStyleVer && iRuntimeStyleVer<=((iCurrentStyleVer>iMinStyleVer)?iCurrentStyleVer:iRuntimeStyleVer))?iRuntimeStyleVer:iCurrentStyleVer;
sStyleComments+=" They are also accessible in Internet Explorer " + iNextMin + " or later using the ";
if(iCurrentStyleVer==iRuntimeStyleVer){
sStyleComments+=vCurrentStyleLink + " object or the " + vRuntimeStyleLink + " object.";
var iMax=(iCurrentStyleVer>iRuntimeStyleVer)?iCurrentStyleVer:iRuntimeStyleVer;
var vLink=(iCurrentStyleVer>iRuntimeStyleVer)?vCurrentStyleLink:vRuntimeStyleLink;
sStyleComments+=", and in Internet Explorer " + iMax + " or later using the " + vLink + " object.";
}
else{
sStyleComments+=".";
}
}
}
}
// Create the platform columns.
fnAddATDataRows(vUseRowNames);
// Set display styles and event handlers.
if(vUseRowNames.length>0){
oATData.width="85%";
oPlatData.width="100%";
oPlatData.parentElement.style.display="block";
oATData.onmouseover=fnATData;
oATData.onmouseout=fnATClear;
oATData.onfocus=fnATData;
oATData.onblur=fnATClear;
var oATC=oATTable.rows(oATTable.rows.length-1).cells(0);
oATC.innerHTML=sHelpText;
oATC.style.display="block";
var oHasFocus=document.activeElement;
if(oHasFocus.parentElement==oATData){
fnUnPack(oHasFocus,true);
}
else{
oATHelp.style.display="block";
}
}
}
/*
void fnAddATDataRows(ARRAY aUseRowNames);
Invoked by fnPostATInit
Builds the platform and version information table.
*/
function fnAddATDataRows(aUseRowNames){
var sTableData='<TABLE CLASS="TMATPD" ID="oPlatData" BORDER="0" CELLSPACING="1">';
sTableData+='<TR><TH STYLE="font-weight: normal;" CLASS="atLabel" TITLE="The name of the object that has focus or is selected in the applies to list." COLSPAN=2>[ Object Name ]</TH></TR>';
sTableData+='<TR><TH CLASS="atLabel" TITLE="Platforms that run Internet Explorer.">Platform</TH><TH CLASS="atLabel" TITLE="This column lists the first version of Internet Explorer that the selected element supported this member." >Version</TH></TR>';
// iRowIndex is set to 2 because the first two rows (above) are used for labels.
var iRowIndex=2;
var iUseLen=aUseRowNames.length;
for(var i=0;i<iUseLen;i++){
var sPlatName=aUseRowNames[i];
var vData=_gvRowData[sPlatName];
// If the platform name is defined in the global hash (defined at top of this file), then add the row and record the row index for use when updating the values.
// The row is hidden until the first call fnUnPack()
if(vData){
sTableData+='<TR STYLE="cursor: default;display: none;" TITLE="Version of Internet Explorer that the selected element supported this member for the ' + vData.name + ' platform."><TD>' + vData.displayName + ':</TD><TD STYLE="text-align: right;"></TD></TR>';
_gvRowData[sPlatName].row=iRowIndex;
iRowIndex++;
}
}
// Add the help row.
sTableData+='<TR STYLE="display: none; font-size: 8pt;" ID=oATHelp><TD COLSPAN=2>Version data is listed when the mouse hovers over a link, or the link has focus.</TD></TR>';
sTableData+='</TABLE>';
if(iUseLen>0){
// Insert the HTML into the applies-to table.
oATTable.rows(0).cells(0).innerHTML=sTableData;
}
}
/*
void fnATClear()
Invoked by blur and mouseout events.
Calls fnUnPack on the active element if it is an applies to list node.
*/
function fnATClear(){
var oHasFocus=document.activeElement;
if(oHasFocus.parentElement==oATData){
fnUnPack(oHasFocus,false);
}
}
/*
void fnATData();
Invoked by mouseover and focus events.
Call fnUnPack on the source element if it is a hyperlink.